type Regulated<T> = T extends null | undefined | false ? never : T

export const isNodeWithContent = (
  node: React.ReactNode,
): node is Regulated<React.ReactNode> => node !== undefined && node !== null && node !== false
